{php}
$currentPath = \think\Request::instance()->path();
{/php}
<div class="left pull-left">
    <div class="btn-group-vertical">
        <ul>
            <li>
                <a class="btn btn-long" href="#" role="button"><span class="glyphicon glyphicon-piggy-bank llong0"></span><span class="llong2">果园管理</span><span class="glyphicon glyphicon-menu-left llong1"></span></a>
                {if condition="in_array($currentPath, ['/','fruit/second','fruit/friends'])"}
                <ul class="sub-menu" style="overflow: hidden; display: block;">
                {else /}
                <ul class="sub-menu">
                {/if}
                    <li><a class="btn btn-long8" href="/">我的果园(额度果子)</a></li>
                    <li><a class="btn btn-long8" href="/fruit/second">我的果园(收益果子)</a></li>
                    <li><a class="btn btn-long8" href="/fruit/friends">采摘好友果园</a></li>
                </ul>
            </li>
            <li>
                <a class="btn btn-long" href="#" role="button"><span class="glyphicon glyphicon-piggy-bank llong0"></span><span class="llong2">收支明细</span><span class="glyphicon glyphicon-menu-left llong1"></span></a>
                {if condition="in_array($currentPath, ['seed/first/record', 'seeding/first/record', 'fruit/first/record', 'seed/second/record', 'seeding/second/record', 'fruit/second/record'])"}
                <ul class="sub-menu" style="overflow: hidden; display: block;">
                {else /}
                <ul class="sub-menu">
                {/if}                      
                    <!--<li><a class="btn btn-long8" href="">采蜜记录</a></li>-->
                    <!--<li><a class="btn btn-long8" href="">偷果记录</a></li>-->
                    <!--<li><a class="btn btn-long8" href="">施肥记录</a></li>-->
                    <li><a class="btn btn-long8" href="/seed/first/record">详细记录(额度种子)</a></li>
                    <li><a class="btn btn-long8" href="/fruit/first/record">详细记录(额度果子)</a></li>
                    <li><a class="btn btn-long8" href="/seed/second/record">详细记录(收益种子)</a></li>
                    <li><a class="btn btn-long8" href="/fruit/second/record">详细记录(收益果子)</a></li>
                </ul>
            </li>
            <li>
                <a class="btn btn-long" href="#" role="button"><span class="glyphicon glyphicon-piggy-bank llong0"></span><span class="llong2">交易系统</span><span class="glyphicon glyphicon-menu-left llong1"></span></a>
                {if condition="in_array($currentPath, ['fruit/sell', 'fruit/buy', 'shop', 'exchange/second', 'exchange/limit', 'lottery'])"}
                <ul class="sub-menu" style="overflow: hidden; display: block;">
                {else /}
                <ul class="sub-menu">
                {/if}
                    <li><a class="btn btn-long8" href="/fruit/sell">果子出售</a></li>
                    <li><a class="btn btn-long8" href="/fruit/buy">抢购大厅</a></li>
                    <li><a class="btn btn-long8" href="/shop">商品购买</a></li>
                    <li><a class="btn btn-long8" href="/exchange/second">金币兑换</a></li>
                    <li><a class="btn btn-long8" href="/exchange/limit">额度兑换</a></li>
                    <li><a class="btn btn-long8" href="/lottery">抽奖大转盘</a></li>
                </ul>
            </li>  
        </ul> 
    </div>
</div>